import {Link,Route} from 'react-router-dom';

import Index from './page/index/index';
import About from './page/about/about';

function App() {
  return (
    <div className="App">
      react 学习

      <div className="nav">
      <Link to="/index">index</Link>
      <Link to="/about">about</Link>
      </div>

      <div className="main">
        <Route path="/index" component={Index}></Route>
        <Route path="/about" component={About}></Route>
      </div>
    </div>
  );
}

export default App;
